﻿using UnityEngine;
using System.Collections;

public class SelectMaterialUnitCompleteButton : MonoBehaviour {
	void OnClick()
	{
		CSceneManager c = GameObject.FindObjectOfType(typeof(CSceneManager)) as CSceneManager;
		if( CSceneManager.prevSceneIndex == SCENE.UnitLevelupScene )
			c.GoToUnitLevelUpScene();
		else if( CSceneManager.prevSceneIndex == SCENE.UnitEvolutionScene )
			c.GoToUnitPowerUpScene();
	}	
}
